package com.fa4j.system.app.repository;

import com.fa4j.common.base.model.CommonState;
import com.fa4j.common.data.repository.BaseRepository;
import com.fa4j.common.web.model.AppType;
import com.fa4j.system.app.model.AppMenu;

import java.util.List;
import java.util.Optional;

/**
 * 系统应用菜单 持久化接口实现
 *
 * @since 2025-07-14 11:04:33
 */
public interface AppMenuRepository extends BaseRepository<AppMenu> {

    List<AppMenu> queryTree(AppType appType, CommonState state, List<Integer> ids);

    Optional<AppMenu> findByAppTypeAndCode(AppType appType, String code);

    List<AppMenu> queryByParentId(Integer parentId);
}
